<template>
  <el-dialog :visible.sync="_show" title="同步数据详情" width="60%">
    <el-table :data="detailList" style="width: 100%" height="360">
      <el-table-column prop="storeName" label="同步店铺" align="center" />
      <el-table-column
        prop="storeAddressDetail"
        label="门店地址"
        show-overflow-tooltip
        align="center"
      />
      <el-table-column prop="storePhone" label="联系电话" align="center" />
      <el-table-column prop="syncTime" label="同步时间" align="center" />
    </el-table>

    <span slot="footer" class="dialog-footer">
      <el-button @click="_show = false" size="mini">取 消</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  model: {
    prop: "show",
    event: "update:show",
  },
  props: {
    show: {
      type: Boolean,
      default: false,
    },

    detailList: {
      type: Array,
      default: () => [],
    },
  },
  data() {
    return {};
  },

  computed: {
    _show: {
      get() {
        return this.show;
      },
      set(val) {
        this.$emit("update:show", val);
      },
    },
  },
};
</script>